package com.cf_houduan.cf_houduan.enums;

import java.util.HashMap;

//操作类型枚举
public enum MatnFlagEnum {

    MATN_FLAG_ADD("01","新增"),
    MATN_FLAG_UPT("02","修改"),
    MATN_FLAG_DEL("03","删除");

    private String code;
    private String name;

    MatnFlagEnum(String code,String name){
        this.code=code;
        this.name=name;
    }

    public String getCode(){ return code; }

    public String getName(){ return name; }

    public static HashMap<String,MatnFlagEnum> matnFlagEnumHashMap = new HashMap<>();

    static {
       for(MatnFlagEnum matnFlagEnum:values()){
           matnFlagEnumHashMap.put(matnFlagEnum.getCode(),matnFlagEnum);
       }

    }

}
